<br>

<div class="form-group">
    <div class="fg-line">
      <label class="fg-label">名称</label>
      <input type="text" class="form-control" name="name" id="name" value="{{ $name }}" placeholder="名称">
    </div>
</div>

<br>

<div class="form-group">
    <div class="fg-line">
      <label class="fg-label">父级分类</label>
      <select name="parent_id" id="tags" class="selectpicker">
          <option value="0">无</option>
          @foreach ($allSorts as $sort)
              <option @if ($sort->id == $parent_id) selected @endif value="{{ $sort->id }}">{{ $sort->name }}</option>
          @endforeach
      </select>
    </div>
</div>